home *** CD-ROM | disk | FTP | other *** search
- 39997 rem **********************
- 39998 rem * hires-linie ziehen *
- 39999 rem **********************
- 40000 if x1<0 or x1>319 or x2<0 or x2>319 then return
- 40010 if y1<0 or y1>199 or y2<0 or y2>199 then return
- 40020 mu=0:gosub 40150
- 40030 return
- 40097 rem ***************************
- 40098 rem * multicolor-linie ziehen *
- 40099 rem ***************************
- 40100 if x1<0 or x1>159 or x1<0 or x1>159 then return
- 40110 if y1<0 or y1>199 or y2<0 or y2>199 then return
- 40120 mu=1:gosub 40150
- 40130 return
- 40135 rem
- 40140 rem *** linie ziehen ***
- 40145 rem
- 40150 dx=x2-x1:dy=y2-y1
- 40154 rem
- 40155 rem ** senkrechte linie ? **
- 40156 rem
- 40160 if dx=0 then x=x1:for y=y1 to y2 step sgn(dy):gosub 40195:next y:return
- 40164 rem
- 40165 rem ** steigung errechnen **
- 40166 rem
- 40170 m=dy/dx
- 40175 fk=m:if m<1 then fk=1
- 40180 for x=x1 to x2 step sgn(dx)/fk:y=m*(x-x1)+y1
- 40185 gosub 40195:rem ** punkt setzen **
- 40190 next x:return
- 40192 rem
- 40193 rem ** hires oder multicolorpunkt **
- 40194 rem
- 40195 if mu=0 then sys 49204,x,y,f:goto 40197:rem ** hirespunkt setzen **
- 40196 sys 49607,f,x,y:rem ** multicolorpunkt setzen **
- 40197 return
-